package teach.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import teach.aistar.mapper.CarBrandsMapper;
import teach.aistar.model.entity.CarBrands;

import teach.aistar.service.ICarBandsService;


import java.util.List;

@Service
@Transactional

public class CarBandsServiceImpl implements ICarBandsService {

    @Autowired
    private CarBrandsMapper carBrandsMapper;

    @Override
    public List<CarBrands> selectAll() {
        return carBrandsMapper.selectAll();

    }

    @Override
    public CarBrands findByID(Long id) {
        return carBrandsMapper.findById(id);
    }
}



